package main;

import dao.ExpressDao;
import view.View;

public class User {
    public static void user(){
        View view = new View();
        String s = view.userMenu();
        boolean byCode = ExpressDao.findByCode(s);
        if(byCode){
            ExpressDao.deleteCode(s);
            view.success(4);
        }else{
            view.fail(4);
        }
    }
}
